package com.baize.motionlayoutdemo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import androidx.transition.TransitionManager
import com.baize.motionlayoutdemo.motionlayout.DrawLayoutActivity
import com.baize.motionlayoutdemo.motionlayout.KeyPositionActivity
import com.baize.motionlayoutdemo.motionlayout.MotionSampleActivity
import com.baize.motionlayoutdemo.motionlayout.YoutubeLikeActivity

class MainActivity : AppCompatActivity() {
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)
    findViewById<Button>(R.id.btn_transition).setOnClickListener {
      startActivity(Intent(this, TransitionActivity::class.java))
    }
    findViewById<Button>(R.id.btn_transition_go).setOnClickListener {
      startActivity(Intent(this, TransitionGoActivity::class.java))
    }
    findViewById<Button>(R.id.btn_constraint).setOnClickListener {
      startActivity(Intent(this, ConstraintActivity::class.java))
    }
    findViewById<Button>(R.id.btn_montionlayout).setOnClickListener {
      startActivity(Intent(this, MotionLayoutActivity::class.java))
    }
    findViewById<Button>(R.id.btn_motion_sample).setOnClickListener {
      startActivity(Intent(this, MotionSampleActivity::class.java))
    }
    findViewById<Button>(R.id.btn_position_key).setOnClickListener {
      startActivity(Intent(this, KeyPositionActivity::class.java))
    }
    findViewById<Button>(R.id.btn_youtube_like).setOnClickListener {
      startActivity(Intent(this, YoutubeLikeActivity::class.java))
    }
    findViewById<Button>(R.id.btn_drawlayout).setOnClickListener {
      startActivity(Intent(this, DrawLayoutActivity::class.java))
    }
  }
}